package com.week11;

import java.util.Arrays;
import java.util.Collection;

public class Main {

    private static String[] servers = { "192.168.0.0:111", "192.168.0.1:111",
            "192.168.0.2:111", "192.168.0.3:111", "192.168.0.4:111", "192.168.0.100:18080" };


    public static void main(String[] args) throws Exception {
	// write your code here
        System.out.printf("selected service with demo1 is: %s",
                new HashDemo01().doSelect(Arrays.asList(servers),"127.0.0.1"));
        System.out.println("");
        System.out.printf("selected service with demo2 is: %s",
                new HashDemo02().doSelect(Arrays.asList(servers),"127.0.0.1"));
    }
}
